package klimuts.periodicals.user.actions;
import java.util.Map;

import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionSupport;

/**
 * This action just set user-variable in session to null
 * @author Siarhei Klimuts
 */
public class Exit extends ActionSupport implements SessionAware{
	private Map<String,Object> session;
	
	public void setSession(Map<String, Object> session) {
		this.session = session;
	}

	public String execute() throws Exception {
		session.put("user", null);
		return "success";
	}

}
